<?php

    class itLocalCacheTest extends itTestCase {
        
        /**
         * @test
         */
        public function general() {
            $local = new itLocalCache();
            $this->assertTrue($local->virgin());
            $local->set('mmm', 'wow');
            $this->assertFalse($local->virgin());
            $this->assertEquals('wow', $local->get('mmm'));
            $local->set('xxx', ($obj = new StdClass()));
            $this->assertEquals($obj, $local->get('xxx'));
            $local->del('xxx');
            $this->assertNull($local->get('xxx'));
            $local->clear();
            $this->assertNull($local->get('mmm'));
        }
    }
    
?>